package com.itheima.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result {
    private boolean flag; //操作成功/ 失败
    private String message; //成功/失败后的提示信息
    private Object result; //查询时返回的数据

    public Result(boolean flag, String message) {
        this.flag = flag;
        this.message = message;
    }
}
